package com.aloha.auth.exception;

/**
 * @author zhdai
 * @date 2023/11/9 21:54
 */
public class AuthException extends RuntimeException{
    private int code;
    private String msg;

    public AuthException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public AuthException setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public AuthException setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
